From 8346104c1cf54624b8679610681f5451b8ff7f58 Mon Sep 17 00:00:00 2001 From: equal-l2 Date: Wed, 27 Sep 2017 22:46:06 +0900 Subject: [PATCH] Fix compilation error --- src/cargo/util/sha256.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cargo/util/sha256.rs b/src/cargo/util/sha256.rs index 97a8a9fb1..c805d7f1a 100644 --- a/src/cargo/util/sha256.rs +++ b/src/cargo/util/sha256.rs @@ -1,12 +1,12 @@ -pub use self::Sha256; extern crate crypto_hash; -use crypto_hash::{Hasher,Algorithm}; +use self::crypto_hash::{Hasher,Algorithm}; +use std::io::Write; pub struct Sha256(Hasher); impl Sha256 { pub fn new() -> Sha256 { - let hasher = Hasher::new(Algorithm::sha256()); + let hasher = Hasher::new(Algorithm::SHA256); Sha256(hasher) } -- 2.30.2